package com.swallow.cloud.common.utils;

import org.springframework.util.StringUtils;

import java.util.Properties;

/**
 * @Author: L.swallow
 * @Date: 2019/3/19 13:50
 */
public class Global {


    public static String DEL="1";

    private static Properties properties=PropertiesUtil.getInstance().getProperties();

    public static String getConfig(String key){
        String val=properties.getProperty(key);
        if(StringUtils.isEmpty(val)){
           return null;
        }
        return val;
    }
}
